/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.neuralnetwork;

/**
 *
 * @author afspear
 */
public class Input {

    public double data;
    public double weight;
    public Perceptron fromPerceptron;
    public Perceptron toPerceptron;

    public Input(Perceptron fromPerceptron, Perceptron toPerceptron) {
        this.fromPerceptron = fromPerceptron;
        this.toPerceptron = toPerceptron;
    }

    public Input(Perceptron fromPerceptron, Perceptron toPerceptron, double weight, double data) {
        this.fromPerceptron = fromPerceptron;
        this.toPerceptron = toPerceptron;
        this.weight = weight;
        this.data = data;
    }

    public Input(Perceptron toPerceptron, double weight, double data) {
        this.toPerceptron = toPerceptron;
        this.weight = weight;
        this.data = data;
        this.fromPerceptron = null;
    }
}
